<html>
<head></head>
<body>
<script>
function sendtomainform(){	
	opener.document.all.name1.value=document.all.n1.value;
	opener.document.all.name2.value=document.all.n2.value;
	opener.document.all.name3.value=document.all.n2.value;
	window.close();
}
</script>


<form action="" method="post">
	<input name="n1" type="text" id="n1">
	<input name="n2" type="text" id="n2">
	<input name="n3" type="text" id="n3">	
	<input type="submit" name="Submit" value="Submit" onClick="sendtomainform();">
</form>
</body>
</html>